home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16945 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: news.mindlink.net!news
  2. From: stefan@burli.com (Stefan Ellis)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: TEdit in OWL
  5. Date: Fri, 12 Apr 1996 18:56:39 GMT
  6. Organization: Burli Software Inc.
  7. Message-ID: <4km91d$cc6@fountain.mindlink.net>
  8. References: <4kl4ri$mq3@ctylnk.cityu.edu.hk>
  9. NNTP-Posting-Host: line145.nwm.mindlink.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. >    When I use TEdit in the following way in a dialog constructor
  13. >    there is not effect at all :
  14. >    
  15. >    item1 = new TEdit(this, -1,10,20,25,75);
  16. >    item1->SetText("this is item1");
  17.  
  18. >    I can't see anything in the Edit box. What 's going on ?
  19.  
  20. >    Still worst,
  21. >        when I use TStatic in a similar way, i.e. to constrct a 
  22. >        text region with a string. 
  23. >        When I call item2->Clear(), the text in the static text region is not clear.
  24.  
  25. Try moving these function calls to your dialog's SetupWindow().  I
  26. believe that these calls required a properly-formed window handle,
  27. which does not yet exist in the constructor.
  28.  
  29. Stefan Ellis
  30. Burli Software Inc.
  31. Computer Consulting & Software Development
  32.  
  33.